<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>数据字典明细管理</title>
</head>
<body class="hold-transition skin-black sidebar-mini">
    <div th:replace="common/fragment :: link"></div>
    <div class="wrapper">
        <div th:replace="common/fragment :: navbar"></div>
        <div th:replace="common/fragment :: menu"></div>
        <div class="content-wrapper">
            <section class="content-header">
                <h1>数据字典明细编辑</h1>
            </section>
            <section class="content">
                <div class="box">
                    <form class="form-horizontal" action="/sysDictData/saveOrUpdate" method="post" id="editForm">
                        <input type="hidden" th:value="${sysDictData?.id}" name="id">
                        <div class="form-group"  style="margin-top: 10px;">
                            <label  class="col-sm-2 control-label">类型：</label>
                            <div class="col-sm-6">
                                <select th:readonly="${sysDictType != null}" class="form-control" name="type">
                                    <option th:each="sdt:${sysDictTypes}"
                                            th:value="${sdt.type}"
                                            th:text="${sdt.name}"
                                            th:selected="${sdt.id == sysDictType?.id || sdt.type == sysDictData?.type}">
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">标签：</label>
                            <div class="col-sm-6">
                                <input type="text" class="form-control" name="label" th:value="${sysDictData?.label}" placeholder="请输入标签">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">键值：</label>
                            <div class="col-sm-6">
                                <input type="text" class="form-control" name="value" th:value="${sysDictData?.value}" placeholder="请输入键值">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">排序：</label>
                            <div class="col-sm-6">
                                <input type="text" class="form-control" name="sort" th:value="${sysDictData?.sort}" placeholder="请输入排序">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">备注：</label>
                            <div class="col-sm-6">
                                <input type="text" class="form-control" name="remark" th:value="${sysDictData?.remark}" placeholder="请输入备注">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-1 col-sm-6">
                                <button type="submit" class="btn btn-primary btn-submit">保存</button>
                                <a href="javascript:window.history.back()" class="btn btn-danger">取消</a>
                            </div>
                        </div>
                    </form>
                </div>
            </section>
        </div>
        <div th:replace="common/fragment :: footer"></div>
    </div>
</body>
</html>